import { useStorage } from '@vueuse/core';
import { defineStore } from 'pinia';
import defaultSettings from '@/settings';

type SettingsValue = boolean | string;

export const useSettingsStore = defineStore("setting",  () => {
    // state
    // 是否展示侧边栏logo
    const sidebarLogo = useStorage<boolean>(
        "sidebarLogo",
        defaultSettings.sidebarLogo
    )
    return { sidebarLogo };
})